--
-- @Author:      name
-- @DateTime:    2018-03-30 23:05:48
-- @Description: redis操作
local skynet = require "skynet"
local MessageDispatch = require "MessageDispatch"
local MessageHandler = require("mysql.MessageHandler")


local function init()
	local message_dispatch = MessageDispatch.new()	
	local message_handler = MessageHandler.new(message_dispatch)
	-- lua消息派发
	skynet.dispatch("lua", message_dispatch:dispatch())		
end


-- 启动服务
skynet.start(function()
	init()
end)

